// 引入createStore,专门用来是创建redux 中最为核心的strore对象   applyMiddleware是中转执行件,combineReducers,统计所有的reducer
import {createStore,applyMiddleware} from 'redux'
// 引入reducers汇总之后的
import allReducer from './reducers'
// redux-dextools-exnsion
import { composeWithDevTools } from 'redux-devtools-extension'
// 引入redux-thunk,用关于支持异步action
import thunk from 'redux-thunk'

const store=createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)))
// 把store 暴露出去
export default store